// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MixedCodeDocumentTextFragment.cs" company="">
//   
// </copyright>
// <summary>
//   Represents a fragment of text in a mixed code document.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Expect.Core.Html
{
    /// <summary>
    /// Represents a fragment of text in a mixed code document.
    /// </summary>
    public class MixedCodeDocumentTextFragment : MixedCodeDocumentFragment
    {
        internal MixedCodeDocumentTextFragment(MixedCodeDocument doc)
            :
                base(doc, MixedCodeDocumentFragmentType.Text)
        {
        }

        /// <summary>
        /// Gets the fragment text.
        /// </summary>
        public string Text
        {
            get { return FragmentText; }

            set { base._fragmenttext = value; }
        }
    }
}